<template>
	<view class="cartBar">
		<view class="cartBar-icon">
			<image src="../static/icon/call-cart.svg" mode=""></image>
		</view>
		<navigator url="/pages/mall/cart/cart">
		<view class="cartBar-icon">
			<view class="dot">
				1
			</view>
			<image src="../static/icon/cart.png" mode=""></image>
		</view>
		</navigator>
		<view class="price">
			￥72.00
		</view>
		<navigator url="/pages/mall/confirm/confirm">
			<view class="button">
				去付款
			</view>
		</navigator>
	</view>
</template>

<script>
	export default {
		name:"cartBar",
		data() {
			return {
				
			};
		}
	}
</script>

<style lang="scss">
.cartBar {
	width: 700rpx;
	height: 100rpx;
	background-color: #10ca7a;
	padding: 20rpx 30rpx 0;
	position: fixed;
	bottom: 0;
	display: flex;
	justify-content: center;
	&-icon {
		width: 80rpx;
		height: 80rpx;
		text-align: center;
		border-radius: 50%;
		background-color: #a4f1d2;
		margin-right: 20rpx;
		position: relative;
		.dot {
			position: absolute;
			right: -15rpx;
			top: 0;
			background-color: #2e997f;
			color: #fff;
			text-align: center;
			width: 40rpx;
			height: 40rpx;
			font-size: 20rpx;
			border-radius: 50%;
			line-height: 40rpx;
		}
		&>image {
			width: 100%;
			height: 100%;
		}
	}
	.icon:first-child {
		&>image  {
			display: block;
			width: 60%;
			height: 60%;
			margin: 15rpx 0 0 15rpx;
		}
	}
	.price {
		line-height: 80rpx;
		font-size: 30rpx;
		font-weight: bold;
		color: #fff;
		flex-grow: 1;
	}
	.button {
		width: 200rpx;
		height: 60rpx;
		border-radius: 40rpx;
		background-color: #a4f1d2;
		margin-top: 10rpx;
		text-align: center;
		font-size: 30rpx;
		font-weight: bold;
		line-height: 60rpx;
		color: #2a7a5a;
	}
}
</style>